<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>DI产品标识信息增加</title>
    <link href="../../../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link href="../../../static/ajax/libs/bootstrap-table/bootstrap-table.min.css" th:href="@{/ajax/libs/bootstrap-table/bootstrap-table.min.css}" rel="stylesheet"/>
    <link href="../../../static/udi/dist/css/layui.css" th:href="@{/udi/dist/css/layui.css}" rel="stylesheet"/>
    <link href="../../../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <link href="../../../static/css/animate.css" th:href="@{/css/animate.css}" rel="stylesheet"/>
    <link href="../../../static/css/style.css" th:href="@{/css/style.css}" rel="stylesheet"/>
    <link href="../../../static/udi/css/jt-ui.css" th:href="@{/udi/css/jt-ui.css}" rel="stylesheet"/>
    <style>
        .cth{
            width: 18%;
            background-color:#F5F5F5;
            font-size: xx-small;
            text-align: right;
        }
        .ctd{
            width: 32%;
        }
        .input_sm{
            width: 70%;
            height: 28px;
            display: inline-block
        }
        .x-required:before {
            content: '* ';
            color: red;
        }
        .text_inline{
            background-color: #f5f5f5;
            width: 23%;
            text-align: center;
        }
        .text-center{
            text-align: center;
        }
    </style>
</head>
<body>
<div class="container-fluid" >
    <div class="panel" style="padding: 5px">
        <div class="panel-heading">
            <div class="panel-title">1. 产品标识基本信息</div>
        </div>
        <div class="panel-body wrapper wrapper-content animated fadeInRight ibox-content">
            <form id="form_cpbsjbxx" th:object="${Data}">
                <table class="table table-bordered" style="width: 100%">
                    <tr>
                        <td class="cth x-required">最小销售单元产品标识：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <input type="text" name="zxxsdycpbs" autocomplete="off" class="form-control" th:value="*{ZXXSDYCPBS}" required>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip"data-placement="top"
                                       title="产品标识所使用的医疗器械唯一标识发码机构的编码体系名称" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth x-required" >医疗器械唯一标识编码体系名称：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <select name="cpbsbmtxmc" class="form-control">
                                        <option selected value="">------请选择------</option>
                                        <option value="GS1">GS1(中国物品编码中心)</option>
                                        <option value="MA">MA(中关村工信二维码技术研究院)</option>
                                        <option value="AHM">AHM(阿里健康科技（中国）有限公司)</option>
                                    </select>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="bottom"
                                       title="某种规格型号医疗器械的最小销售单元上的UDI-DI，是对医疗器械进行准确识别、查找、流向和使用情况精准定位的唯一性代码" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth x-required" >产品标识发布日期：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="input-group">
                                        <input type="text" name="cpbsfbrq" autocomplete="off"  class="form-control time-input">
                                        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="产品标识在医疗器械唯一标识数据库上对外发布的日期" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth x-required" >最小销售单元中使用单元的数量：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <input class="form-control" autocomplete="off" id="zxxsdyzsydydsl" name="zxxsdyzsydydsl" required>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械最小销售单元中使用单元的数量" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth" id="sydycpbs_label">使用单元产品标识：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <input class="form-control" name="sydycpbs" autocomplete="off">
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="当在UDI未标记在单个医疗器械上的情况下，分配给单个医疗器械产品的产品标识，其目的是将医疗器械产品的使用与患者进行关联" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth x-required" >标识载体：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="check-box">
                                        <label><input name="bszt" type="checkbox" value="1"></label>
                                        <label>一维码</label>
                                    </div>
                                    <div class="check-box">
                                        <label><input name="bszt" type="checkbox" value="2"></label>
                                        <label>二维码</label>
                                    </div>
                                    <div class="check-box">
                                        <label><input name="bszt" type="checkbox" value="3"></label>
                                        <label>RIFD</label>
                                    </div>
                                    <div class="check-box">
                                        <label><input name="bszt" type="checkbox" value="4"></label>
                                        <label>其它</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip"
                                       data-placement="bottom" title="存储或者传输医疗器械唯一标识的数据媒介" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth x-required">是否与注册/备案产品标识一致：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" onclick="fun_sfyzcbayz(this.value)" name="sfyzcbayz" value="1">
                                        </label>
                                        <label>是</label>
                                    </div>
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" onclick="fun_sfyzcbayz(this.value)" name="sfyzcbayz" value="0">
                                        </label>
                                        <label>否</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="最小销售单元产品标识是否与产品注册/备案时所提交的产品标识相同" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth" id="zcbacpbs_label">注册/备案产品标识：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <input class="form-control" id="zcbacpbs" disabled name="zcbacpbs"autocomplete="off" required>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械产品在进行注册/备案审批时所填报的医疗器械的最小销售单元上的UDI-DI" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth x-required" >是否有本体直接标识：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="sfybtzjbs" onclick="fun_sfybtzjbs(this.value)" value="1">
                                        </label>
                                        <label>是</label>
                                    </div>
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="sfybtzjbs" onclick="fun_sfybtzjbs(this.value)" value="0">
                                        </label>
                                        <label>否</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="是否有医疗器械本体直接标识（DM UDI)" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth"  id="btcpbsyzxxsdycpbssfyz_label">本体产品标识与最小销售单元的产品标识是否一致：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" onclick="fun_btcpbsyzxxsdycpbssfyz(this.value)" name="btcpbsyzxxsdycpbssfyz" value="1">
                                        </label>
                                        <label>是</label>
                                    </div>
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" onclick="fun_btcpbsyzxxsdycpbssfyz(this.value)" name="btcpbsyzxxsdycpbssfyz" value="0">
                                        </label>
                                        <label>否</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械本体产品标识与最小销售单元产品标识是否一致" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth" >本体产品标识：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <input class="form-control"  name="btcpbs" autocomplete="off" disabled="disabled">
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);"  data-toggle="tooltip" data-placement="top" title="医疗器械本体直接附加医疗器械唯一标识中的产品标识（DM UDI-DI)" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="panel" style="padding: 5px">
        <div class="panel-heading">
            <div class="panel-title">2. 产品基本信息</div>
        </div>
        <div class="panel-body wrapper wrapper-content animated fadeInRight ibox-content">
            <form id="cpjbxx">
                <table class="table table-bordered  table-condensed" style="width: 100%">
                    <tr>
                        <td class="cth x-required" >产品名称/通用名称：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <input class="form-control" name="cpmctymc" required>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械注册证或备案凭证上载明的产品名称/通用名称" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth" >商品名称：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <input class="form-control" name="spmc">
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="由医疗器械注册人/备案人确定的医疗器械商品名称" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth x-required" >规格型号</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <input class="form-control" name="ggxh" required>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械注册证或备案凭证上确定的规格型号，且应与最小销售单元产品标识一一对应" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth x-required" >是否为包类/组套类产品：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="sfwblztlcp" value="1">
                                        </label>
                                        <label>是</label>
                                    </div>
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="sfwblztlcp" value="0">
                                        </label>
                                        <label>否</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械是否为包类/组套类产品" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth x-required" >产品描述：</td>
                        <td class="ctd" colspan="3">
                            <div class="form-group">
                                <div class="col-sm-11">
                                    <textarea rows="3" name="cpms" class="form-control" autocomplete="off" required></textarea>
                                </div>
                                <div class="col-sm-1" style="top: 18px;left: 20px">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="产品与最小销售单元产品标识一一对应必需的描述信息" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth" >产品货号或编号：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <label>
                                        <input class="form-control" name="cphhhbh" autocomplete="off">
                                    </label>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械产品的货号或企业的产品目录编号" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth" >原分类编码（原器械目录代码）：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <label>
                                        <input class="form-control" name="yflbm" autocomplete="off">
                                    </label>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="国家医疗器械监管部门发布的医疗器械类别编码" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth x-required" >器械类别：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" onclick="fun_cplx(this.value)" name="cplx" value="1" >
                                        </label>
                                        <label>器械</label>
                                    </div>
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" onclick="fun_cplx(this.value)" name="cplx" value="2">
                                        </label>
                                        <label>体外诊断试剂</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械产品是器械或体外诊断试剂" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth x-required">分类编码：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div id="qx_flbm">
                                        <div style="width: 30%;display: inline-block">
                                            <select name="flbmx1" class="form-control" required>
                                                <option selected value="">---请选择---</option>
                                                <option value="01">01 有源手术器械</option>
                                                <option>02 无源手术器械</option>
                                                <option>03 神经和心血管手术器械</option>
                                            </select>
                                        </div>
                                        <div style="width: 30%;display: inline-block">
                                            <select name="flbmx2" class="form-control" required>
                                                <option selected value="">---请选择---</option>
                                                <option value="00">无</option>
                                                <option>1</option>
                                            </select>
                                        </div>
                                        <div style="width: 35%;display: inline-block">
                                            <select name="flbmx3" class="form-control"  required>
                                                <option selected value="">---请选择---</option>
                                                <option value="00">无</option>
                                                <option>1</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="国家医疗器械监管部门发布的医疗器械类别编码" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>

                    </tr>
                    <tr>
                        <td class="cth x-required" >医疗器械注册人/备案人名称：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <input class="form-control" name="ylqxzcrbarmc" required>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械注册证/备案凭证载明的注册人/备案人" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth" >医疗器械注册人/备案人英文名称：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <input class="form-control" name="ylqxzcrbarywmc">
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械注册证/备案凭证载明的注册人/备案人" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth x-required" >注册证编号或者备案凭证编号：</td>
                        <td class="ctd" colspan="3">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="input-group">
                                        <input class="form-control"  name="zczbhhzbapzbh" placeholder="存在多个用英文”,“隔开" autocomplete="off" required>
                                        <div class="input-group-addon btn btn-success"><span>选择（可多选）</span></div>
                                    </div>
                                </div>
                                <div class="col-sm-1">
                                    <div class="btn btn-success btn-sm" onclick="clean_zczbhhzbapzbh()">清空</div>
                                </div>
                                <div class="col-sm-1">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械注册证载明的注册证编号或备案凭证载明的备案凭证编号" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth" >医保耗材分类编码：</td>
                        <td class="ctd" colspan="3">
                            <div class="form-group">
                                <div class="col-sm-11">
                                    <textarea rows="3" class="form-control" name="ybbm" autocomplete="off" placeholder="若存在多个医保耗材分类编码，以英文逗号,分隔医保耗材分类编码"></textarea>
                                </div>
                                <div class="col-sm-1">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="填写27位的国家医保耗材分类编码，若存在多个医保耗材分类编码，以英文逗号,分隔医保耗材分类编码" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth x-required" >磁共振（MR）安全相关信息：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <select class="form-control" name="cgzmraqxgxx" style="height: 28px" required>
                                        <option selected value="">---请选择---</option>
                                        <option value="0">安全</option>
                                        <option value="1">不安全</option>
                                        <option value="2">条件安全安全</option>
                                        <option value="3">说明书或标签不包含MR安全性信息</option>
                                    </select>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="产品说明书或标签中载明的与磁共振（MR）相关安全兼容状态" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth x-required" >产品类别：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="hchzsb" value="0">
                                        </label>
                                        <label>耗材</label>
                                    </div>
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="hchzsb" value="1">
                                        </label>
                                        <label>设备</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械产品类别是耗材还是设备" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth x-required" >是否标记为一次性使用：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="sfbjwycxsy" onclick="fun_sfbjwycxsy(this.value)" value="1">
                                        </label>
                                        <label>是</label>
                                    </div>
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="sfbjwycxsy" onclick="fun_sfbjwycxsy(this.value)" value="0">
                                        </label>
                                        <label>否</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械是否标记为一次性使用" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth" >最大重复使用次数：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <input class="form-control" name="zdcfsycs" placeholder="" autocomplete="off">
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械的最大重复使用次数" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth x-required" >是否为无菌包装：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio"  name="sfwwjbz" value="1">
                                        </label>
                                        <label>是</label>
                                    </div>
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="sfwwjbz" value="0">
                                        </label>
                                        <label>否</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械是否为出厂前已灭菌的产品" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth x-required" >使用前是否需要进行灭菌：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" onclick="fun_syqsfxyjxmj(this.value)" name="syqsfxyjxmj" value="1">
                                        </label>
                                        <label>是</label>
                                    </div>
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" onclick="fun_syqsfxyjxmj(this.value)" name="syqsfxyjxmj" value="0">
                                        </label>
                                        <label>否</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械使用前是否需要进行灭菌" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth" id="mjfs_label">灭菌方式：</td>
                        <td class="ctd" colspan="3">
                            <div class="form-group">
                                <div class="col-sm-11">
                                    <textarea rows="3" name="mjfs"  class="form-control"autocomplete="off"></textarea>
                                </div>
                                <div class="col-sm-1">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械的灭菌方式" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth" >其它信息的网址链接：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <input class="form-control" name="qtxxdwzlj" autocomplete="off">
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="提供医疗器械其他信息的网址链接" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth" >退市日期：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="input-group">
                                        <input class="form-control time-input" name="tsrq" autocomplete="off">
                                        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械停止进入流通领域的时间" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="panel" style="padding: 5px">
        <div class="panel-heading">
            <div class="panel-title">3. 生产标识信息</div>
        </div>
        <div class="panel-body wrapper wrapper-content animated fadeInRight ibox-content">
            <form id="scbsxx" name="scbsxx">
                <table class="table table-bordered  table-condensed" style="width: 100%">
                    <tr>
                        <td class="cth x-required" >生产标识是否包含批号：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="scbssfbhph" value="1">
                                        </label>
                                        <label>是</label>
                                    </div>
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="scbssfbhph" value="0">
                                        </label>
                                        <label>否</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械生产标识是否包含批号" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth x-required" >生产标识是否包含序列号：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="scbssfbhxlh" value="1">
                                        </label>
                                        <label>是</label>
                                    </div>
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="scbssfbhxlh" value="0">
                                        </label>
                                        <label>否</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械生产标识是否包含序列号" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="cth x-required" >生产标识是否包含生产日期：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="scbssfbhscrq" value="1">
                                        </label>
                                        <label>是</label>
                                    </div>
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="scbssfbhscrq" value="0">
                                        </label>
                                        <label>否</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械生产标识是否包含生产日期" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                        <td class="cth x-required" >生产标识是否包含失效日期：</td>
                        <td class="ctd">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <div class="radio-box">
                                        <label>
                                            <input type="radio" name="scbssfbhsxrq" value="1">
                                        </label>
                                        <label>是</label>
                                    </div>
                                    <div class="radio-box" style="display: inline-block">
                                        <label>
                                            <input type="radio" name="scbssfbhsxrq" value="0">
                                        </label>
                                        <label>否</label>
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <a href="javascript:void(0);" data-toggle="tooltip" data-placement="top" title="医疗器械生产标识是否包含失效日期" class="badge badge-info">?</a>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>

    <div class="panel" style="padding: 5px">
        <div class="panel-heading">
            <div class="panel-title">4. 包装标识信息</div>
        </div>
        <div class="panel-body wrapper wrapper-content animated fadeInRight ibox-content">
            <form id="form_bzbsxx">
                <table class="table table-condensed" style="background-color: #f5f5f5">
                    <tr>
                        <td>
                            <div class="col-sm-12">
                                <button type="button" class="btn btn-white btn-sm" onclick="addColumn(1)"><i class="fa fa-plus"> 增加</i></button>
                                <button type="button" class="btn btn-white btn-sm" onclick="sub.delColumn()"><i class="fa fa-minus"> 删除</i></button>
                                <div class="col-sm-12 select-table table-striped table-bordered">
                                    <table id="bootstrap-table-package"></table>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="panel" style="padding: 5px">
        <div class="panel-heading">
            <div class="panel-title">5. 存储或操作标识信息</div>
        </div>
        <div class="panel-body wrapper wrapper-content animated fadeInRight ibox-content">
            <form id="form_cchczbsxx">
                <table class="table table-condensed" style="background-color: #F5F5F5">
                    <tr>
                        <td style="text-align: right;width: 20%;">特殊存储或操作条件：</td>
                        <td colspan="6">
                            <textarea id="tscchcztj" class="input-sm form-control" rows="3"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div class="col-sm-12">
                                <button type="button" class="btn btn-white btn-sm" onclick="addColumn(2)"><i class="fa fa-plus"> 增加</i></button>
                                <button type="button" class="btn btn-white btn-sm" onclick="sub.delColumn()"><i class="fa fa-minus"> 删除</i></button>
                                <div class="col-sm-12 select-table table-striped table-bordered">
                                    <table id="bootstrap-table-operate"></table>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="panel" style="padding: 5px">
        <div class="panel-heading">
            <div class="panel-title">6. 临床使用尺寸信息</div>
        </div>
        <div class="panel-body wrapper wrapper-content animated fadeInRight ibox-content">
            <form id="form_lcsyccxx">

                <table class="table table-condensed" style="background-color: #F5F5F5">
                    <tr>
                        <td style="text-align: right;width: 20%;">特殊尺寸说明：</td>
                        <td colspan="6">
                            <textarea id="tsccsm" class="input-sm form-control" rows="3"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div class="col-sm-12">
                                <button type="button" class="btn btn-white btn-sm" onclick="addColumn(3)"><i class="fa fa-plus"> 增加</i></button>
                                <button type="button" class="btn btn-white btn-sm" onclick="sub.delColumn()"><i class="fa fa-minus"> 删除</i></button>
                                <div class="col-sm-12 select-table table-striped table-bordered">
                                    <table id="bootstrap-table-clinical"></table>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <footer class="navbar-fixed-bottom">
        <table class="table" style="margin-bottom: 0px;border: 1px;background-color: #fff">
            <tr>
                <td style="width: 33.3%"></td>
                <td style="width: 33.3%" align="center">
                    <button id="submit_dimana" class="btn btn-success btn-sm">填报校验</button>
                    <button id="save_dimana" class="btn btn-info btn-sm">保存</button>
                    <button id="back_dimana" class="btn btn-warning btn-sm">返回</button>
                </td>
                <td style="width: 33.3%"></td>
            </tr>
        </table>
    </footer>
</div>
<!-- 内含小一级的最小销售单元产品标识 -->
<script id="lowLevelTpl" type="text/x-jquery-tmpl">
<div>
<select class='form-control' name='data[${index}].bznhxyjbzcpbs'>
    <option value="">所有</option>
    <option value="0" {{if type==="0"}}selected{{/if}}>寒性</option>
    <option value="1" {{if type==="1"}}selected{{/if}}>热性</option>
</select>
</div>
</script>

<!-- 值范围 -->
<script id="scopTpl" type="text/x-jquery-tmpl">
 <div>
   <div style="width:35%;display: inline-block">
    <input name="data[${index}].zdz" class="form-control input-sm" placeholder="最低值" autocomplete="off">
 </div>
 <span>-</span>
 <div style="width:35%;display: inline-block">
    <input name="data[${index}].zgz" class="form-control input-sm" placeholder="最高值" autocomplete="off">
 </div>
 </div>
</script>

<!--<th:block th:include="include :: footer" />-->
<script src="../../../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
<script src="../../../static/js/jquery.tmpl.js" th:src="@{/js/jquery.tmpl.js}"></script>
<script src="../../../static/ajax/libs/blockUI/jquery.blockUI.js" th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
<script src="../../../static/udi/dist/layui.js" th:src="@{/udi/dist/layui.js}"></script>
<script src="../../../static/js/bootstrap.min.js" th:src="@{/js/bootstrap.min.js}"></script>
<script src="../../../static/ajax/libs/bootstrap-table/bootstrap-table.min.js" th:src="@{/ajax/libs/bootstrap-table/bootstrap-table.min.js}"></script>
<script src="../../../static/ajax/libs/validate/jquery.validate.min.js" th:src="@{/ajax/libs/validate/jquery.validate.min.js}"></script>
<script src="../../../static/ajax/libs/validate/messages_zh.min.js" th:src="@{/ajax/libs/validate/messages_zh.min.js}"></script>
<script src="../../../static/ajax/libs/validate/jquery.validate.extend.js" th:src="@{/ajax/libs/validate/jquery.validate.extend.js}"></script>
<script src="../../../static/udi/js/common.js" th:src="@{/udi/js/common.js}"></script>
<script src="../../../static/udi/js/jt-ui.js" th:src="@{/udi/js/jt-ui.js}"></script>
<script th:inline="javascript">
    /**初始全局变量*/
    var DeviceData = [[${Data}]];
    var DevicePackage = [[${Package}]];
    var DeviceStorage = [[${Storage}]];
    var DeviceClinical = [[${Clinical}]];

    console.log(DeviceData);

    console.log(typeof DevicePackage);
    console.log(typeof DeviceStorage);
    console.log(DeviceClinical);

    $(function() {
        // 初始化数据, 可以由后台传过来
        var data_package = DevicePackage;
        var data_Storage = DeviceStorage;
        var data_clinical = DeviceClinical;


        var options_package = {
            id:"bootstrap-table-package",
            data: data_package,
            pagination: false,
            showSearch: false,
            showRefresh: false,
            showToggle: false,
            showColumns: false,
            sidePagination: "client",
            columns: [{
                checkbox: true
            },
                {
                    field: 'index',
                    align: 'center',
                    title: "序号",
                    formatter: function (value, row, index) {
                        var columnIndex = $.common.sprintf("<input type='hidden' name='index' value='%s'>", $.table.serialNumber(index));
                        var columnId = $.common.sprintf("<input type='hidden' name='data[%s].id' value='%s'>", index, row.id);
                        return columnIndex + $.table.serialNumber(index) + columnId;
                    }
                },
                {
                    field: 'bzcpbs',
                    align: 'center',
                    title: '包装产品标识',
                    formatter: function(value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='data[%s].bzcpbs' autocomplete='off' value='%s'>", index, value);
                        return html;
                    }
                },
                {
                    field: 'cpbzjb',
                    align: 'center',
                    title: '产品包装级别',
                    formatter: function(value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='data[%s].cpbzjb' autocomplete='off' value='%s'>", index, value);
                        return html;
                    }
                },
                {
                    field: 'bznhxyjcpbssl',
                    align: 'center',
                    title: '包装内含小一级产品标识数量',
                    formatter: function(value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='data[%s].bznhxyjcpbssl' autocomplete='off' value='%s'>", index, value);
                        return html;
                    }
                },
                {
                    field: 'bznhxyjbzcpbs',
                    align: 'center',
                    title: '包装内含小一级包装产品标识',
                    formatter: function(value, row, index) {
                        var data = [{ index: index, type: value }];
                        return $("#lowLevelTpl").tmpl(data).html();
                    }
                }]
        };
        $.table.init(options_package);

        var options_operate = {
            id:"bootstrap-table-operate",
            data: data_Storage,
            pagination: false,
            showSearch: false,
            showRefresh: false,
            showToggle: false,
            showColumns: false,
            sidePagination: "client",
            columns: [{
                checkbox: true
            },
                {
                    field: 'index',
                    align: 'center',
                    title: "序号",
                    formatter: function (value, row, index) {
                        var columnIndex = $.common.sprintf("<input type='hidden' name='index' value='%s'>", $.table.serialNumber(index));
                        var columnId = $.common.sprintf("<input type='hidden' name='data[%s].id' value='%s'>", index, row.id);
                        return columnIndex + $.table.serialNumber(index) + columnId;
                    }
                },
                {
                    field: 'cchcztj',
                    align: 'center',
                    title: '存储或操作条件',
                    formatter: function(value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='data[%s].cchcztj' value='%s'>", index, value);
                        return html;
                    }
                },
                {
                    field: 'scope',
                    align: 'center',
                    title: '值范围',
                    formatter: function(value, row, index) {
                        var data = [{index:index,type:value}];
                        return $("#scopTpl").tmpl(data).html();
                    }
                },
                {
                    field: 'jldw',
                    align: 'center',
                    title: '计量单位',
                    formatter: function(value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='data[%s].jldw' value='%s'>", index, value);
                        return html;
                    }
                }]
        };
        $.table.init(options_operate);

        var options_clinical = {
            id:"bootstrap-table-clinical",
            data: data_clinical,
            pagination: false,
            showSearch: false,
            showRefresh: false,
            showToggle: false,
            showColumns: false,
            sidePagination: "client",
            columns: [{
                checkbox: true
            },
                {
                    field: 'index',
                    align: 'center',
                    title: "序号",
                    formatter: function (value, row, index) {
                        var columnIndex = $.common.sprintf("<input type='hidden' name='index' value='%s'>", $.table.serialNumber(index));
                        var columnId = $.common.sprintf("<input type='hidden' name='data[%s].id' value='%s'>", index, row.id);
                        return columnIndex + $.table.serialNumber(index) + columnId;
                    }
                },
                {
                    field: 'lcsycclx',
                    align: 'center',
                    title: '临床使用尺寸类型',
                    formatter: function(value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='data[%s].lcsycclx' value='%s'>", index, value);
                        return html;
                    }
                },
                {
                    field: 'ccz',
                    align: 'center',
                    title: '尺寸值',
                    formatter: function(value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='data[%s].ccz' value='%s'>", index, value);
                        return html;
                    }
                },
                {
                    field: 'ccdw',
                    align: 'center',
                    title: '尺寸单位',
                    formatter: function(value, row, index) {
                        var html = $.common.sprintf("<input class='form-control' type='text' name='data[%s].ccdw' value='%s'>", index, value);
                        return html;
                    }
                }]
        };
        $.table.init(options_clinical);
    });



    //添加新行
    function addColumn(data) {
        var row_package = {
            id: "1",
            bzcpbs: "",
            cpbzjb: "",
            bznhxyjcpbssl: "",
            bznhxyjbzcpbs: ""
        }
        var row_operate = {
            id: "1",
            cchcztj: "",
            zdz: "",
            zgz: "",
            jldw: ""
        }
        var row_clinical = {
            id: "1",
            lcsycclx: "",
            ccz: "",
            ccdw: ""
        }
        if(data===1){
            sub.addColumn(row_package,"bootstrap-table-package");
        }else if(data===2){
            sub.addColumn(row_operate,"bootstrap-table-operate");
        }else if(data===3){
            sub.addColumn(row_clinical,"bootstrap-table-clinical");
        }
    }

    //按指定大小分割数组
    function splice_array(array, size) {
        //获取数组的长度，如果你传入的不是数组，那么获取到的就是undefined
        const length = array.length
        //判断不是数组，或者size没有设置，size小于1，就返回空数组
        if (!length || !size || size < 1) {
            return []
        }
        //核心部分
        let index = 0 //用来表示切割元素的范围start
        let resIndex = 0 //用来递增表示输出数组的下标

        //根据length和size算出输出数组的长度，并且创建它。
        let result = new Array(Math.ceil(length / size))
        //进行循环
        while (index < length) {
            //循环过程中设置result[0]和result[1]的值。该值根据array.slice切割得到。
            result[resIndex++] = array.slice(index, (index += size))
        }
        //输出新数组
        return result
    }

    /* 主子表-提交 */
    function submitHandler(index, layero){
        var data = $("#form-add").serializeArray();
        alert(JSON.stringify(data))
        $.operate.saveModal("/demo/operate/customer/add", data);
    }


    /**提示工具*/
    $(function () {
        $("[data-toggle='tooltip']").tooltip();
    });
    /** 产品标识基本信息校验 */
    $("#form_cpbsjbxx").validate({
        //屏蔽键盘验证
        onkeyup: false,
        //失去焦点验证
        /*onfocusout: function(element) { $(element).valid(); },*/
        rules:{
            cpbsfbrq:{
                required:true,
                date:true
            },
            cpbsbmtxmc:{
                required:true
            },
            zxxsdyzsydydsl:{
                digits:true,
            },
            bszt:{
                required:true,
            },
            sfyzcbayz:{
                required:true
            },
            sfybtzjbs:{
                required:true
            },
            btcpbsyzxxsdycpbssfyz: {
                required:true
            },
            btcpbs:{
                required:true
            }
        },
        messages:{
            zxxsdyzsydydsl:{
                digits:"只能填入正整数"
            },
            bszt:{
                required:"必填"
            }
        },
        focusCleanup: true
    });
    //最小销售单元中使用单元的数量大于1，使用单元产品标识必填
    $('input[name="zxxsdyzsydydsl"]').on('change',function () {
        if($('input[name="zxxsdyzsydydsl"]').val()>"1"){
            $('input[name="sydycpbs"]').attr('required',"required");
            $('#sydycpbs_label').attr('class',"cth x-required");
        }else{
            $('input[name="sydycpbs"]').removeAttr('required');
            $('#sydycpbs_label').attr('class',"cth");

            $('input[name="sydycpbs"]').attr('class',"form-control");
            $('#sydycpbs-error').remove();
        }
    })

    //注册/备案产品标识：显示/隐藏
    function fun_sfyzcbayz(value){
        if(value ==="1"){
            console.log("123");
            $("#zcbacpbs").val("");
            $("#zcbacpbs").attr("disabled","disabled");
            //刷新结构
            $("#zcbacpbs-error").remove();
            //刷新样式
            $("#zcbacpbs").attr('class',"form-control");
            $("#zcbacpbs_label").attr('class',"cth")
        }else if(value ==="0"){
            $("#zcbacpbs").removeAttr("disabled");
            $("#zcbacpbs_label").attr('class',"cth x-required")
        }
    }
    //是否有本体直接标识：
    function fun_sfybtzjbs(value) {
        var id1="#btcpbsyzxxsdycpbssfyz_label",id2='input[name="btcpbsyzxxsdycpbssfyz"]',id3='input[name="btcpbs"]';
        if(value ==="0"){
            $(id1).attr('class',"cth");

            $(id2).removeAttr("checked");
            $(id2).attr("disabled","disabled");

            $(id3).val("");
            $(id3).attr("disabled","disabled");

            //清除错误消息
            $("#btcpbsyzxxsdycpbssfyz-error").remove();

            //清除错误消息
            $(id3).attr('class','form-control');
            $("#btcpbs-error").remove();
        }else if(value ==="1"){
            $(id1).attr('class',"cth x-required");
            $(id2).removeAttr("disabled");
        }
    }

    //本体产品标识与最小销售单元的产品标识是否一致：
    function fun_btcpbsyzxxsdycpbssfyz(value) {
        var id= 'input[name="btcpbs"]';
        if(value === "1"){
            $(id).val("");
            $(id).attr("disabled","disabled");
            //清除错误消息
            $(id).attr('class','form-control');
            $("#btcpbs-error").remove();
        }else  if(value === "0"){
            $(id).attr('required','required')
            $(id).removeAttr("disabled");
        }
    }

    /** 产品基本信息校验 */
    $("#cpjbxx").validate({
        //屏蔽键盘验证
        onkeyup: false,
        //失去焦点验证
        //onfocusout: function(element) { $(element).valid(); },
        rules: {
            sfwblztlcp:{
                required:true
            },
            cplx:{
                required:true
            },
            hchzsb:{
                required:true
            },
            sfbjwycxsy:{
                required:true
            },
            sfwwjbz:{
                required:true
            },
            syqsfxyjxmj:{
                required:true
            }
        },
        messages: {},
        focusCleanup: true
    });

    //产品类型
    function fun_cplx(value) {
        if(value==="1"){
            $('select[name="flbmx3"]').removeAttr('disabled');
        }if(value === "2"){
            $('select[name="flbmx3"]').attr('disabled',"disabled");
        }
    }

    //清空按钮
    function clean_zczbhhzbapzbh(){
        $('input[name="zczbhhzbapzbh"]').val("");
    }
    //是否标记为一次性使用
    function fun_sfbjwycxsy(data){
        var id = 'input[name="zdcfsycs"]';
        if(data === "1"){
            $(id).attr('disabled',"disabled");
            $(id).val("");
        }else{
            $(id).removeAttr('disabled');
        }
    }
    //使用前是否需要进行灭菌
    function fun_syqsfxyjxmj(value) {
        if(value === "0"){
            //清除错误消息
            $('#mjfs-error').remove();
            $('textarea[name="mjfs"]').removeAttr('required');
            $('textarea[name="mjfs"]').attr("class","form-control");

            //重置input
            $('textarea[name="mjfs"]').val("");
            $('textarea[name="mjfs"]').attr("readonly","readonly");

            $("#mjfs_label").attr('class',"cth");
        }else if(value === "1"){
            $('textarea[name="mjfs"]').removeAttr("readonly");
            $('textarea[name="mjfs"]').attr('required','required');

            $("#mjfs_label").attr('class',"cth x-required");
        }
    }
    /** 生产标识信息校验 */
    $("#scbsxx").validate({
        //屏蔽键盘验证
        onkeyup: false,
        rules: {
            scbssfbhph:{
                required:true
            },
            scbssfbhxlh:{
                required:true
            },
            scbssfbhscrq:{
                required:true
            },
            scbssfbhsxrq:{
                required:true
            }
        },
        messages: {},
        focusCleanup: true
    });

    /**提交填报验证验证*/
    $("#submit_dimana").on('click',function () {
        //
    })
    /** 验证保存草稿 */
    $("#save_dimana").on('click',function () {
        //表单依次遍历校验
        var bool = $("#form_cpbsjbxx").validate().form() && $("#cpjbxx").validate().form() && $("#scbsxx").validate().form();
        if(bool){
            var data = data_operate();
            var config = {
                url: "/upload/di/add",
                type: "post",
                dataType: "json",
                contentType: "application/json",
                data: JSON.stringify(data),
                beforeSend: function () {
                    $.modal.loading("正在处理中，请稍后...");
                },
                success: function(result) {
                    $.modal.alertSuccess(result.msg);
                    $.modal.closeLoading();
                    /* $.operate.successCallback(result);*/
                }
            };
            $.ajax(config)
        }else{
            layer.msg("信息尚未完善",{icon:7,time:1000,skin:'demo'});
        }
    })
    /**返回主菜单*/
    $("#back_dimana").on('click',function () {
        $.modal.closeTab();
    })

    /** 数据封装处理 */
    var data_operate = function (){
        /** 产品标识信息 11*/
        var formlist = $("#form_cpbsjbxx").serializeArray();

        //去掉已获取的bszt
        for (var i = 0; i < formlist.length; i++) {
            if(formlist[i].name ==="bszt"){
                formlist.splice(i,1);
                /*角标跳一位*/
                i--;
            }
        }
        //遍历标识载体取值
        var bszt_arry = [];
        $('input[name="bszt"]:checked').each(function(index, element) {
            //追加到数组中
            bszt_arry.push($(this).val());
        });
        //将数组元素连接起来转化为字符串
        var bsztStr ={"name":"bszt","value":bszt_arry.join(',')};
        formlist.push(bsztStr)
        /** 产品基本信息 21 */
        var list1 = $("#cpjbxx").serializeArray();
        //去掉已获取的flbm
        for (var i = 0; i < list1.length; i++) {
            if(list1[i].name.indexOf("flbmx") !==-1){
                list1.splice(i,1);
                /*角标跳一位*/
                i--;
            }
        }
        //分类编码取值
        var flbm_array = $("select[name='flbmx1']").val()+"-"+$("select[name='flbmx2']").val()+"-"+$("select[name='flbmx3']").val()
        list1.push({"name":"flbm","value":flbm_array})

        /** 生产标识信息 4*/
        var list2 = $("#scbsxx").serializeArray();
        //追加特殊值
        list2.push({"name":"tscchcztj","value":$("#tscchcztj").val()});
        list2.push({"name":"tsccsm","value":$("#tsccsm").val()});

        var list= Object.assign(form_Tojson(formlist), Object.assign(form_Tojson(list1), form_Tojson(list2)));
        /** 包装标识信息 */
        var list3 = bzbsxxData();
        /** 存储或操作标识信息 */
        var list4 = cchczbsxxData();
        /** 临床使用尺寸信息 */
        var list5 = lcsyccxxData();
        return {deviceData:list,devicePackage:list3,deviceStorage:list4,deviceClinical:list5};
    }



    var bzbsxxData = function (){
        var data = $("#form_bzbsxx").serializeArray();
        var array = [];
        $.each(splice_array(data,6),function(i,item){
            var obj = {};
            $.each(item,function (o,otem){
                if(otem.name==="data["+i+"].bzcpbs"){
                    obj.bzcpbs = otem.value;
                }
                if(otem.name==="data["+i+"].cpbzjb"){
                    obj.cpbzjb = otem.value;
                }
                if(otem.name==="data["+i+"].bznhxyjcpbssl"){
                    obj.bznhxyjcpbssl = otem.value;
                }
                if(otem.name==="data["+i+"].bznhxyjbzcpbs"){
                    obj.bznhxyjbzcpbs = otem.value;
                }
                obj.zxxsdycpbs = $('input[name="zxxsdycpbs"]').val();
            })
            array.push(obj);
        })
        return array;
    }
    var cchczbsxxData = function (){
        var data = $("#form_cchczbsxx").serializeArray();
        var array = [];
        $.each(splice_array(data,6),function(i,item){
            var obj = {};
            $.each(item,function (o,otem){
                if(otem.name==="data["+i+"].cchcztj"){
                    obj.cchcztj = otem.value;
                }
                if(otem.name==="data["+i+"].zdz"){
                    obj.zdz = otem.value;
                }
                if(otem.name==="data["+i+"].zgz"){
                    obj.zgz = otem.value;
                }
                if(otem.name==="data["+i+"].jldw"){
                    obj.jldw = otem.value;
                }
                obj.zxxsdycpbs = $('input[name="zxxsdycpbs"]').val();
            })
            array.push(obj);
        })
        return array;
    }
    var lcsyccxxData = function (){
        var data = $("#form_lcsyccxx").serializeArray();
        var array = [];
        $.each(splice_array(data,5),function(i,item){
            var obj = {};
            $.each(item,function (o,otem){
                if(otem.name==="data["+i+"].lcsycclx"){
                    obj.lcsycclx = otem.value;
                }
                if(otem.name==="data["+i+"].ccz"){
                    obj.ccz = otem.value;
                }
                if(otem.name==="data["+i+"].ccdw"){
                    obj.ccdw = otem.value;
                }
                obj.zxxsdycpbs = $('input[name="zxxsdycpbs"]').val();
            })
            array.push(obj);
        })
        return array;
    }
    //传入form.serializeArray(),返回json对象
    var form_Tojson = function (array) {
        var json = {};
        $.each(array, function(i, field) {
            if(json[field.name]) {
                json[field.name] += ("," + field.value);
            } else {
                json[field.name] = field.value;
            }
        });
        return json;
    }
</script>
</body>
</html>